package io.lkt.common.file.handler;

import io.lkt.common.file.service.OssService;
import org.bouncycastle.cert.ocsp.RespData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("fileOss")
public class OssHandler {

    @Autowired
    private OssService ossService;

    @PostMapping(value = "/updateFile", produces = "application/json;charset=UTF-8")
    public String updateFile(@RequestBody Map<String, Object> params) {
        return ossService.updateFile(params.get("ossKey").toString(),params.get("ossValue").toString());
    }
}
